<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=2" />
<style>
.clearfix:after {content: '\0020';display: block;height: 0;clear: both;}
.clearfix {*zoom: 1;}
#app {height:auto;overflow:visible;padding-bottom:25px;}
#applist {height:auto;width:auto;position:static;}
.appitem{margin-left:12px;margin-right:3px;}
</style>
<script type="text/javascript" src="js/hao123/z.js"></script>
</head>
<body onLoad="setTimeout(function(){window.scrollTo(0, 0);},100);window.bdwebpage.onTargetPageLoaded();">
<div id="header">
  <div id="forecast"><span id="date" class="date"><!--12月11日 星期日--></span>
<span id="weather" class="weather"><!--<a>北京</a>
 晴 2 ~ 6℃--></span>

</div>
</div>
<script type="text/javascript">
var z = "";
if(window['localStorage']){
	z = window['localStorage']['hao123.z'];
}
z = getCookie('z');
var param = (z ? ("?z="+z) : "");
function getCookie(key){
	var reg = new RegExp("(^| )" + key + "=([^;]*)(;|\x24)"),result = reg.exec(document.cookie);
    if (result) {
        return result[2] || null;
    }
}
function G(id){
	return document.getElementById(id);
}
function hao_tianqi(d){
	$('#date').html(d[2][0][1]+' '+d[2][0][0]);
	$('#weather').html('<a>'+d[0]+'</a>'+' '+d[1][0][0]+' '+d[1][2][0]);
}
</script>
<script type="text/javascript">document.write("<script src='http://m.hao123.com/js/weather.js"+ param +"'></" + "script>");</script>
<script type="text/javascript">
document.addEventListener("touchend", itemclear);

function itemup() {
    G("smallup").style.display = "block";
    G("smalldown").style.display = "none";
    G("sitem").style.display = "block"
}function itemdown() {
    G("smalldown").style.display = "block";
    G("sitem").style.display = "none";
    G("smallup").style.display = "none"
}function litemup() {
    G("largeup").style.display = "block";
    G("largedown").style.display = "none";
    G("litem").style.display = "block"
}function litemdown() {
    G("largedown").style.display = "block";
    G("litem").style.display = "none";
    G("largeup").style.display = "none"
}function itemclear(a) {
    if ((a.target != G("largedown")) && (a.target != G("litem"))) {
        litemdown()
    }
}function prevent(a) {
    a.stopPropagation()
}(function () {
    var c = $("#fenlei .expand"),
        b = curExpand = "";

    function a(e) {
        var d = new Date().getTime();
        xmlhttp = new XMLHttpRequest();
        xmlhttp.onreadystatechange = function () {
            if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
                $("#ex-span-" + e).html(xmlhttp.responseText)
            }
        };
        xmlhttp.open("GET", "http://m.hao123.com/n/v_ex/" + e + "?t=" + d + "&z=2", true);
        xmlhttp.send()
    }
    c.on("click", function (d) {
        d.preventDefault();
        if (!this.id) {
            return
        }
        curExpand = this.id.split("-")[1] || "";
        if (this.className == "expand") {
            if (b != "") {
                $("#td-" + b).attr("class", "expand");
                $("#ex-span-" + b).parent().hide()
            }($("#ex-span-" + curExpand)[0].innerHTML == "正在加载数据...") && a(curExpand);
            $(this).attr("class", "expand2");
            $("#ex-span-" + curExpand).parent().show();
            b = curExpand
        } else {
            if (this.className == "expand2") {
                $(this).attr("class", "expand");
                $("#ex-span-" + curExpand).parent().hide();
                b = ""
            }
        }
    })
})();

$("#back").on("click", function () {
    window.scrollTo(0, 0)
});
</script>
</body>
</html>
